/**
 * Created by wangshaohua on 2018/2/7.
 */
moduleResource.factory("LanguageResource", function (CambioResource, $$CambioConfig) {

    const resource = $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/language";
    return CambioResource(resource, {}, {
        upload: {
            url: resource + "/upload",
            method: 'POST'
        },
        delete: {
            url: resource + "/delete/:id",
            method: 'POST'
        },
        load: {
            url: resource + "/load/:locale",
            method: 'GET'
        },
        detail: {
            url: resource + "/detail/:id",
            method: 'GET'
        },
        update: {
            url: resource + "/update/:id",
            method: 'PUT'
        }
    });
});